class User < ActiveRecord::Base
	belongs_to :profile

	acts_as_authentic do |c|
		c.ignore_blank_passwords=false
		c.logged_in_timeout=30.minutes
	end

  #acts_as_commentable
	
  ROLES = %w[admin mentor student staff]

	def role?(role)
		self.role == role.to_s 
	end

	def to_label
		"#{login}"
	end
end
